package com.tang.service.impl;

import com.tang.service.Image;
import lombok.extern.slf4j.Slf4j;

/**
 * 图片实现类
 *
 * @author fulin.tang
 * @version V3.0
 * @since 2021/9/15 17:43
 */
@Slf4j
public class RealImage implements Image {
    
    private final String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        this.loadFromDisk(fileName);
    }
    
    @Override
    public void display() {
        log.info("Displaying {}", fileName);
    }
    
    private void loadFromDisk(String fileName) {
        log.info("Loading {}", fileName);
    }
    
}
